{extend name="layout/layout" /}

{block name="content"}
<blockquote class="layui-elem-quote quoteBox">
    <form class="layui-form">
        <div class="layui-inline searchBox">
            <div class="layui-input-inline">
                <input type="text" class="layui-input id" name="id" placeholder="请输入采购单号" />
            </div>
            <a class="layui-btn search_btn" data-type="reload">搜索</a>
            <button type="reset" class="layui-btn layui-btn-danger reset_btn"><i class="layui-icon">&#xe669;</i></button>
        </div>
        <div class="layui-inline">
            <!--<a href="{:url('admin/product/add')}" class="layui-btn layui-btn-normal add_btn">新增</a>-->
            <a href="javascript:;"  class="layui-btn layui-btn-normal add_btn"><i class="layui-icon"></i> 新增（选择供应商）</a>
        </div>
    </form>
</blockquote>

<table id="dataTable" lay-filter="dataTable"></table>
<script type="text/html" id="toolbarDemo01">
    <div class="layui-btn-container">

    </div>
</script>
<!--操作-->
<script type="text/html" id="handleBar">
    <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
    <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del">删除</a>
</script>

<input type="hidden" class="datalist_url" value="{:url('admin/Purchase/index')}">
<input type="hidden" class="add_url" value="{:url('admin/Purchase/add')}">
<input type="hidden" class="get_supplier" value="{:url('admin/Purchase/get_supplier')}">
<input type="hidden" class="edit_url" value="{:url('admin/Purchase/edit')}">
<input type="hidden" class="delete_url" value="{:url('admin/Purchase/delete')}">
<input type="hidden" class="details_url" value="{:url('admin/Purchase/details')}">
<div class="layui-form-item" id="supspr" style="display: none;margin-top: 10%">
    <div class="layui-inline" style="width: 84%;">
        <label class="layui-form-label">供货商</label>
        <div class="layui-input-block">
            <select id="supsprselect">
                <option value="0">请选择</option>
                {volist name="sup" id="vo"}
                <option value="{$vo.id}">{$vo.name}</option>
                {/volist}
            </select>
        </div>
    </div>

</div>
{/block}


{block name="pagescript"}
<script>
    var DELETE_URL = "{:url('admin/product/delete')}";
</script>

<script src="__STATIC__/admin/pages/js/purchase.js" type="text/javascript"></script>
{/block}

